package com.example.project3

import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.TextView
import androidx.core.app.ComponentActivity


@SuppressLint("RestrictedApi")
class SecondActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_second)
        val intent = getIntent()
        val textView = findViewById<TextView>(R.id.textView2)
        textView.text = intent.getStringExtra((FIRST_MSG))

    }
}
